package org.jeecg.modules.gather.model.query;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value="网页采集任务对象", description="网页采集任务对象")
public class WebCaptureQuery {
    @ApiModelProperty(value = "网站名称")
    @NotBlank(message = "网站名称不能为空或 null")
    private String siteName;

    @ApiModelProperty(value = "采集栏目名称")
    @NotBlank(message = "采集栏目名称不能为空或 null")
    private String columnName;

    @ApiModelProperty(value = "网站域名")
    @NotBlank(message = "网站域名不能为空或 null")
    private String siteDomain;

    @ApiModelProperty(value = "网站备案号")
    @NotBlank(message = "网站备案号不能为空或 null")
    private String siteIdCode;

    @ApiModelProperty(value = "采集总页数")
    private Integer totalPage;

    @ApiModelProperty(value = "采集开始时间")
    private Date startDate;
}
